Fix a copy-paste error
authorMatthias Clasen <mclasen@redhat.com>
Mon, 14 Sep 2015 17:20:36 +0000 (13:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 14 Sep 2015 19:20:58 +0000 (15:20 -0400)
We were notifying can-focus when can-default changes.
Unit tests save the day.

gtk/gtkwidget.c

index 7f39e354252750ac45cb801f8912ff247712ec49..ebfc1ffa64dcdc87f28d280091adb93af9ed2527 100644 (file)
@@ -8402,7 +8402,7 @@ gtk_widget_set_can_default (GtkWidget *widget,
       widget->priv->can_default = can_default;
 
       gtk_widget_queue_resize (widget);
-      g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_CAN_FOCUS]);
+      g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_CAN_DEFAULT]);
     }
 }